package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ContractAdvanceEntity;
@MyBatisDao
public interface ContractAdvanceEntityMapper extends CrudDao<ContractAdvanceEntity>{
    int deleteByPrimaryKey(Long advanceId);

    int insert(ContractAdvanceEntity record);

    int insertSelective(ContractAdvanceEntity record);

    ContractAdvanceEntity selectByPrimaryKey(Long advanceId);

    int updateByPrimaryKeySelective(ContractAdvanceEntity record);

    int updateByPrimaryKeyWithBLOBs(ContractAdvanceEntity record);

    int updateByPrimaryKey(ContractAdvanceEntity record);
    /**
     * @Description 定时获取数据供财务业务结算使用
     * @param contractAdvanceEntity
     * @return
     */
    List<ContractAdvanceEntity> findListForFinance(ContractAdvanceEntity contractAdvanceEntity);
    /**
     * @Description 更新定时获取的数据状态
     * @param contractAdvanceEntity
     */
    int updateStatus(ContractAdvanceEntity contractAdvanceEntity);
}